package mh.lightremote;

import java.util.Observable;

public class LightModel extends Observable{
	public LightModel( int red, int green, int blue ) {
		this.red = red;
		this.green = green;
		this.blue = blue;
	}
	
	private int red;
	public int getRed() {
		return red;
	}
	public void setRed(int red) {
		this.red = red;
		this.setChanged();
		this.notifyObservers();
	}
	
	private int green;
	public int getGreen() {
		return green;
	}
	public void setGreen(int green) {
		this.green = green;
		this.setChanged();
		this.notifyObservers();
	}
	
	private int blue;
	public int getBlue() {
		return blue;
	}
	public void setBlue(int blue) {
		this.blue = blue;
		this.setChanged();
		this.notifyObservers();
	}
	
}
